import { Entity, Column, ObjectIdColumn, ObjectID, BaseEntity } from 'typeorm'

@Entity()
export class Photo extends BaseEntity {
  @ObjectIdColumn()
  id: ObjectID

  @Column()
  name: string

  @Column()
  description: string

  @Column()
  filename: string

  @Column()
  isPublished: boolean
}
